package com.dgut.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Employee implements Serializable {
    public static final String SALE_MANAGER = "sale_manager";
    public static final String SALE_STAFF = "sale_staff";
    public static final String WAREHOUSE_KEEPER = "warehouse_keeper";


    @TableId(value = "emp_id", type = IdType.AUTO)
    private Long empId;//员工编号
    private String account;//账号
    private String password;//密码
    private Integer type;//员工类型
    private String empName;//员工姓名
    private String sex;//性别
    private String photo;//员工照片
    private String empPhone;//电话
    private String email;//邮箱
    private LocalDate hireTime;//入职时间
    private String node;//备注
    @TableLogic
    private Integer isDeleted;
}
